package uicgas.pump.commands;

import uicgas.communication.Communication;
import uicgas.globaldata.States;
import uicgas.pump.PumpLogic;

/**
 * Decommission command
 * 
 * @author Hong Wang
 *
 */
public class DecommissionPump extends AbstractRemoteCommand
{
	public DecommissionPump(PumpLogic pumpLogic, Communication communication)
	{
		super(pumpLogic, communication);
	}

	@Override
	public void executeRemoteCommand()
	{
		pumpLogic.decommissionPump();
		pumpLogic.changeState(States.DECOMMISSIONED);
	}

}
